package com.fxm.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import java.io.Serializable;

/**
 * @author fxm
 * @version V1.0.0
 * @description: 错题表
 * @date 2021/02/25 16:29
 */
@Data
@TableName("answer_error")
@Builder
public class Error implements Serializable {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 错题时间
     */
    private String date;
    /**
     * 用户唯一标识
     */
    private String openid;
    /**
     * 用户选择
     */
    private String userAnswer;
    /**
     * 错误题目id
     */
    private Integer questionId;
    /**
     * 删除标记：0=正常;1=已删除
     */
    private Integer deleted;

    @Tolerate
    public Error () {}

}
